package homework5;

public class Delete {
	public 
	double[] delete(double[] a)
	{
		int i,j;
		double t;
		double []  c=new double [a.length];
		for(i=0;i<a.length-1;i++)
		{
				for(j=1;j<a.length-i;j++)
					if(a[j-1]>a[j])
					{
						t=a[j];
						a[j]=a[j-1];
						a[j-1]=t;
					}	
		}
		int  k=0;
		for(i=1;i<a.length-1;i++)
		{
			c[k++]=a[i];
		}
		
		return c;
	}
}